<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><fmt:message key="app.title"/></title>
<jsp:include page= "header.jsp" />
</head>
<body>
<div id="loading-mask" style=""></div>
<div id="loading">
<div class="loading-indicator"><img src="<c:url value="/static/images/extanim32.gif" />" />
<fmt:message key="app.name"/> <fmt:message key="app.version"/><br />
<span id="loading-msg"><fmt:message key="app.loading"/></span></div>
</div>
<!-- 
<script type="text/javascript" src="/static/libs/firebug-lite/content/firebug-lite-dev.js"></script>
 -->
<script type="text/javascript" charset="utf-8"> 
  Ext.onReady(App.init);
</script>

<div id="header">
  <div id="branding" class="left-side"> 
    <h1><fmt:message key="app.name"/></h1>
  </div>
  <div class="right-side">
    <sec:authorize access="!isAuthenticated()"> 
      <a href="<c:url value="/login" />"><fmt:message key="app.login"/></a>
    </sec:authorize>  
    <sec:authorize access="isAuthenticated()">
      <span style="color:red;"><sec:authentication property="principal.username" /></span><span style="color:yellow;"> |</span>
      <a href="<c:url value="/j_spring_security_logout" />"><fmt:message key="app.logout"/></a>
    </sec:authorize>
  </div>
</div>

<div id="welcome-tab" class="little-padding">
  <p><fmt:message key="app.welcome"/></p>
  <br/>
</div>

<!-- Fields required for history management -->
<form id="history-form" class="x-hidden">
  <input type="hidden" id="x-history-field" />
  <iframe id="x-history-frame"></iframe>
</form>
<iframe src="" id="__download" style="width:0;height:0;border:0"></iframe> 
</body>
</html>